package com.e.dianshang.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: HP
 * Date: 2020/11/9 16:49
 * Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
//利用JPA注解关联tb_ticket表
@Table(name = "tb_goods_class1")
public class GoodsClassOne implements Serializable {

    @Id
    @Column(name = "gt1_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    @Column(name = "gt1_type")
    private String typeOne;

    // 删除状态
    @Column(name = "gt1_states")
    private boolean status;
}
